import Vue from 'vue'
export const role = {
  list: (params) => {
    return Vue.prototype.$post('upms/role/list', params)
  },
  queryAll: (params) => {
    return Vue.prototype.$post('upms/role/queryAll', params)
  },
  findByUserId: (params) => {
    return Vue.prototype.$get(`upms/role/findByUserId/${params}`)
  },
  update: (params) => {
    return Vue.prototype.$post('upms/role/update', params)
  },
  add: (params) => {
    return Vue.prototype.$post('upms/role/add', params)
  },
  check: (params) => {
    return Vue.prototype.$post('upms/role/check/', params)
  },
  delete: (params) => {
    return Vue.prototype.$get(`upms/role/delete/${params}`)
  },
  info: (params) => {
    return Vue.prototype.$get(`upms/role/info/${params}`)
  }
}
